package com.coupons.business.common.vo.decorator;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.support.lob.DefaultLobHandler;

import com.coupons.business.common.vo.PartnerPageContent;

public class PartnerPageContentRowMapper implements RowMapper {

	public Object mapRow(ResultSet ar, int arg1) throws SQLException {
		PartnerPageContent objlPageContent = new PartnerPageContent();
		DefaultLobHandler onjlDefaultLobHandler = new DefaultLobHandler();
		objlPageContent.setPartnerPageId(ar.getInt("partner_page_id"));
		objlPageContent.setPartnerId(ar.getInt("partner_id"));
		objlPageContent.setPartnerPageId(ar.getInt("page_id"));
		objlPageContent.setHeaderLineText(ar.getString("hdr_ln_txt"));
		objlPageContent.setSiteDescription(ar.getString("site_description"));
		objlPageContent.setDisclaimer(ar.getString("disclaimer"));
		objlPageContent.setFooter(ar.getString("footer"));
		objlPageContent.setRightSideAds(ar.getString("rght_sde_txt"));
		objlPageContent.setOffersHeader(ar.getString("offers_hdr"));
		objlPageContent.setHowDoIText(ar.getString("how_do_txt"));
		objlPageContent.setEmblem(ar.getString("prtr_emblem"));
		objlPageContent.setCreationDate(ar.getDate("crtn_dt"));
		objlPageContent.setLastUpdatedDate(ar.getDate("last_updt_dt"));
		objlPageContent.setLastUpdatedUser(ar.getString("last_updt_user "));		
		
		return objlPageContent;
	}
}   
//search_ltr_txt    CLOB
//featured_stores_links    CLOB
   
//   
//SiteLinks    CLOB
  